#include "rtw_capi.h"
#ifdef HOST_CAPI_BUILD
#include "foc1_capi_host.h"
#define sizeof(s) ((size_t)(0xFFFF))
#undef rt_offsetof
#define rt_offsetof(s,el) ((uint16_T)(0xFFFF))
#define TARGET_CONST
#define TARGET_STRING(s) (s)
#ifndef SS_UINT64
#define SS_UINT64 18
#endif
#ifndef SS_INT64
#define SS_INT64 19
#endif
#else
#include "builtin_typeid_types.h"
#include "foc1.h"
#include "foc1_capi.h"
#include "foc1_private.h"
#ifdef LIGHT_WEIGHT_CAPI
#define TARGET_CONST
#define TARGET_STRING(s)               ((NULL))
#else
#define TARGET_CONST                   const
#define TARGET_STRING(s)               (s)
#endif
#endif
static const rtwCAPI_Signals rtBlockSignals [ ] = { { 0 , 0 , TARGET_STRING (
"foc1/Gain" ) , TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 1 , 0 ,
TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/Te " ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 2 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Mechanical model/Fcn" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 3 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Mechanical model/Gain" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 4 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Mechanical model/Gain2" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 5 , 0 , TARGET_STRING (
"foc1/SVPWM /Sector calculate/Fcn2" ) , TARGET_STRING ( "" ) , 0 , 0 , 0 , 0
, 0 } , { 6 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Data Type Conversion" ) , TARGET_STRING ( "" ) , 0 ,
0 , 0 , 0 , 1 } , { 7 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Data Type Conversion1" ) , TARGET_STRING ( "" ) , 0 ,
0 , 0 , 0 , 1 } , { 8 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Data Type Conversion2" ) , TARGET_STRING ( "" ) , 0 ,
0 , 0 , 0 , 1 } , { 9 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Data Type Conversion3" ) , TARGET_STRING ( "" ) , 0 ,
0 , 0 , 0 , 1 } , { 10 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Data Type Conversion4" ) , TARGET_STRING ( "" ) , 0 ,
0 , 0 , 0 , 1 } , { 11 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Data Type Conversion5" ) , TARGET_STRING ( "" ) , 0 ,
0 , 0 , 0 , 1 } , { 12 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Multiport Switch" ) , TARGET_STRING ( "" ) , 0 , 0 ,
0 , 0 , 0 } , { 13 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Multiport Switch1" ) , TARGET_STRING ( "" ) , 0 , 0 ,
0 , 0 , 0 } , { 14 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Multiport Switch2" ) , TARGET_STRING ( "" ) , 0 , 0 ,
0 , 0 , 0 } , { 15 , 0 , TARGET_STRING ( "foc1/SVPWM /XYZ Calculate/Fcn" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 16 , 0 , TARGET_STRING (
"foc1/SVPWM /XYZ Calculate/Fcn1" ) , TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0
} , { 17 , 0 , TARGET_STRING ( "foc1/SVPWM /XYZ Calculate/Fcn2" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 18 , 0 , TARGET_STRING (
"foc1/Two-Level Converter/Model/Data Type Conversion1" ) , TARGET_STRING ( ""
) , 0 , 0 , 0 , 0 , 2 } , { 19 , 0 , TARGET_STRING (
"foc1/Two-Level Converter/Model/Product4" ) , TARGET_STRING ( "" ) , 0 , 0 ,
1 , 0 , 1 } , { 20 , 0 , TARGET_STRING (
"foc1/powergui/EquivalentModel1/State-Space" ) , TARGET_STRING ( "" ) , 0 , 0
, 2 , 0 , 0 } , { 21 , 0 , TARGET_STRING (
"foc1/powergui/EquivalentModel1/State-Space" ) , TARGET_STRING ( "" ) , 1 , 0
, 1 , 0 , 0 } , { 22 , 0 , TARGET_STRING (
"foc1/PID Controller/I Gain/Internal Parameters/Integral Gain" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 23 , 0 , TARGET_STRING (
"foc1/PID Controller3/I Gain/Internal Parameters/Integral Gain" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 24 , 0 , TARGET_STRING (
"foc1/PID Controller4/I Gain/Internal Parameters/Integral Gain" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 25 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/qd2abc/Fcn" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 26 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/qd2abc/Fcn1" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 27 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/qd2abc/Sum" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 28 , 0 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Repeating Sequence/Look-Up Table1" ) , TARGET_STRING
( "" ) , 0 , 0 , 0 , 0 , 3 } , { 29 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/id/Sum" ) ,
TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 30 , 0 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/Sum1" )
, TARGET_STRING ( "" ) , 0 , 0 , 0 , 0 , 0 } , { 0 , 0 , ( NULL ) , ( NULL )
, 0 , 0 , 0 , 0 , 0 } } ; static const rtwCAPI_BlockParameters
rtBlockParameters [ ] = { { 31 , TARGET_STRING ( "foc1/DC Voltage Source" ) ,
TARGET_STRING ( "Amplitude" ) , 0 , 0 , 0 } , { 32 , TARGET_STRING (
"foc1/PID Controller" ) , TARGET_STRING ( "P" ) , 0 , 0 , 0 } , { 33 ,
TARGET_STRING ( "foc1/PID Controller" ) , TARGET_STRING ( "I" ) , 0 , 0 , 0 }
, { 34 , TARGET_STRING ( "foc1/PID Controller" ) , TARGET_STRING (
"InitialConditionForIntegrator" ) , 0 , 0 , 0 } , { 35 , TARGET_STRING (
"foc1/PID Controller3" ) , TARGET_STRING ( "P" ) , 0 , 0 , 0 } , { 36 ,
TARGET_STRING ( "foc1/PID Controller3" ) , TARGET_STRING ( "I" ) , 0 , 0 , 0
} , { 37 , TARGET_STRING ( "foc1/PID Controller3" ) , TARGET_STRING (
"InitialConditionForIntegrator" ) , 0 , 0 , 0 } , { 38 , TARGET_STRING (
"foc1/PID Controller4" ) , TARGET_STRING ( "P" ) , 0 , 0 , 0 } , { 39 ,
TARGET_STRING ( "foc1/PID Controller4" ) , TARGET_STRING ( "I" ) , 0 , 0 , 0
} , { 40 , TARGET_STRING ( "foc1/PID Controller4" ) , TARGET_STRING (
"InitialConditionForIntegrator" ) , 0 , 0 , 0 } , { 41 , TARGET_STRING (
"foc1/Constant" ) , TARGET_STRING ( "Value" ) , 0 , 0 , 0 } , { 42 ,
TARGET_STRING ( "foc1/Constant2" ) , TARGET_STRING ( "Value" ) , 0 , 0 , 0 }
, { 43 , TARGET_STRING ( "foc1/Constant3" ) , TARGET_STRING ( "Value" ) , 0 ,
0 , 0 } , { 44 , TARGET_STRING ( "foc1/Gain" ) , TARGET_STRING ( "Gain" ) , 0
, 0 , 0 } , { 45 , TARGET_STRING ( "foc1/Gain1" ) , TARGET_STRING ( "Gain" )
, 0 , 0 , 0 } , { 46 , TARGET_STRING ( "foc1/SVPWM /Constant" ) ,
TARGET_STRING ( "Value" ) , 0 , 0 , 0 } , { 47 , TARGET_STRING (
"foc1/SVPWM /Constant1" ) , TARGET_STRING ( "Value" ) , 0 , 0 , 0 } , { 48 ,
TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Coulomb & Viscous Friction"
) , TARGET_STRING ( "offset" ) , 0 , 0 , 0 } , { 49 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Coulomb & Viscous Friction"
) , TARGET_STRING ( "gain" ) , 0 , 0 , 0 } , { 50 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Discrete-Time Integrator"
) , TARGET_STRING ( "gainval" ) , 0 , 0 , 0 } , { 51 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Discrete-Time Integrator"
) , TARGET_STRING ( "InitialCondition" ) , 0 , 0 , 0 } , { 52 , TARGET_STRING
(
 "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Discrete-Time Integrator1"
) , TARGET_STRING ( "gainval" ) , 0 , 0 , 0 } , { 53 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Discrete-Time Integrator1"
) , TARGET_STRING ( "InitialCondition" ) , 0 , 0 , 0 } , { 54 , TARGET_STRING
( "foc1/Permanent Magnet Synchronous Machine/Mechanical model/Gain" ) ,
TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 55 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Mechanical model/Gain2" ) ,
TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 56 , TARGET_STRING (
"foc1/SVPWM /Sector calculate/Constant3" ) , TARGET_STRING ( "Value" ) , 0 ,
0 , 0 } , { 57 , TARGET_STRING ( "foc1/SVPWM /Sector calculate/Constant4" ) ,
TARGET_STRING ( "Value" ) , 0 , 0 , 0 } , { 58 , TARGET_STRING (
"foc1/SVPWM /Sector calculate/Switch" ) , TARGET_STRING ( "Threshold" ) , 0 ,
0 , 0 } , { 59 , TARGET_STRING ( "foc1/SVPWM /Sector calculate/Switch1" ) ,
TARGET_STRING ( "Threshold" ) , 0 , 0 , 0 } , { 60 , TARGET_STRING (
"foc1/SVPWM /Sector calculate/Switch2" ) , TARGET_STRING ( "Threshold" ) , 0
, 0 , 0 } , { 61 , TARGET_STRING ( "foc1/SVPWM /Subsystem/Gain" ) ,
TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 62 , TARGET_STRING (
"foc1/SVPWM /Subsystem/Gain1" ) , TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , {
63 , TARGET_STRING ( "foc1/SVPWM /Subsystem/Gain2" ) , TARGET_STRING ( "Gain"
) , 0 , 0 , 0 } , { 64 , TARGET_STRING ( "foc1/SVPWM /Subsystem/Switch" ) ,
TARGET_STRING ( "Threshold" ) , 0 , 0 , 0 } , { 65 , TARGET_STRING (
"foc1/SVPWM /Subsystem/Switch1" ) , TARGET_STRING ( "Threshold" ) , 0 , 0 , 0
} , { 66 , TARGET_STRING ( "foc1/SVPWM /Subsystem1/Repeating Sequence" ) ,
TARGET_STRING ( "rep_seq_y" ) , 0 , 3 , 0 } , { 67 , TARGET_STRING (
"foc1/Two-Level Converter/Model/Compare To Constant" ) , TARGET_STRING (
"const" ) , 0 , 0 , 0 } , { 68 , TARGET_STRING (
"foc1/Two-Level Converter/Model/Saturation" ) , TARGET_STRING ( "UpperLimit"
) , 0 , 0 , 0 } , { 69 , TARGET_STRING (
"foc1/Two-Level Converter/Model/Saturation" ) , TARGET_STRING ( "LowerLimit"
) , 0 , 0 , 0 } , { 70 , TARGET_STRING (
"foc1/powergui/EquivalentModel1/State-Space" ) , TARGET_STRING ( "DS_param" )
, 0 , 4 , 0 } , { 71 , TARGET_STRING (
"foc1/PID Controller/Integrator/Discrete/Integrator" ) , TARGET_STRING (
"gainval" ) , 0 , 0 , 0 } , { 72 , TARGET_STRING (
"foc1/PID Controller3/Integrator/Discrete/Integrator" ) , TARGET_STRING (
"gainval" ) , 0 , 0 , 0 } , { 73 , TARGET_STRING (
"foc1/PID Controller4/Integrator/Discrete/Integrator" ) , TARGET_STRING (
"gainval" ) , 0 , 0 , 0 } , { 74 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Repeating Sequence/Constant" ) , TARGET_STRING (
"Value" ) , 0 , 0 , 0 } , { 75 , TARGET_STRING (
"foc1/SVPWM /Subsystem1/Repeating Sequence/Look-Up Table1" ) , TARGET_STRING
( "BreakpointsForDimension1" ) , 0 , 3 , 0 } , { 76 , TARGET_STRING (
"foc1/powergui/EquivalentModel1/Sources/SwitchCurrents" ) , TARGET_STRING (
"Value" ) , 0 , 1 , 0 } , { 77 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/id/Discrete-Time Integrator"
) , TARGET_STRING ( "gainval" ) , 0 , 0 , 0 } , { 78 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/id/Discrete-Time Integrator"
) , TARGET_STRING ( "InitialCondition" ) , 0 , 0 , 0 } , { 79 , TARGET_STRING
( "foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/id/1//Ld"
) , TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 80 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/id/Lq//Ld"
) , TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 81 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/id/R//Ld" )
, TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 82 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/Discrete-Time Integrator"
) , TARGET_STRING ( "gainval" ) , 0 , 0 , 0 } , { 83 , TARGET_STRING (
 "foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/Discrete-Time Integrator"
) , TARGET_STRING ( "InitialCondition" ) , 0 , 0 , 0 } , { 84 , TARGET_STRING
( "foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/1//Lq"
) , TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 85 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/Ld//Lq"
) , TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 86 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/R//Lq" )
, TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 87 , TARGET_STRING (
"foc1/Permanent Magnet Synchronous Machine/Electrical model/iq,id/iq/lam//Lq"
) , TARGET_STRING ( "Gain" ) , 0 , 0 , 0 } , { 0 , ( NULL ) , ( NULL ) , 0 ,
0 , 0 } } ; static int_T rt_LoggedStateIdxList [ ] = { - 1 } ; static const
rtwCAPI_Signals rtRootInputs [ ] = { { 0 , 0 , ( NULL ) , ( NULL ) , 0 , 0 ,
0 , 0 , 0 } } ; static const rtwCAPI_Signals rtRootOutputs [ ] = { { 0 , 0 ,
( NULL ) , ( NULL ) , 0 , 0 , 0 , 0 , 0 } } ; static const
rtwCAPI_ModelParameters rtModelParameters [ ] = { { 0 , ( NULL ) , 0 , 0 , 0
} } ;
#ifndef HOST_CAPI_BUILD
static void * rtDataAddrMap [ ] = { & rtB . hn3dccr3ro , & rtB . p3qdmqq2jr ,
& rtB . fj3fao1c3u , & rtB . cis3ukuxpf , & rtB . f0qbz1rzka , & rtB .
khzjqq4aca , & rtB . oehdg5tfvl , & rtB . o3ipjb4ia1 , & rtB . kuqyy4l1im , &
rtB . d4er4shvvt , & rtB . a31fuchwx4 , & rtB . lbnbux40tm , & rtB .
btnvqswzr5 , & rtB . ml1gl3cyt3 , & rtB . k344ayyian , & rtB . m0soobc2tx , &
rtB . gys1h2d20i , & rtB . of4xqa4iyq , & rtB . ir01thxxfd , & rtB .
fgm2ey422o [ 0 ] , & rtB . gumxvgfbxn [ 0 ] , & rtB . i24nyf40tk [ 0 ] , &
rtB . kblebvykwt , & rtB . lhq4adqmd0 , & rtB . nai45kmsg3 , & rtB .
doh1ukidqb , & rtB . bnvxvacbbl , & rtB . ck12s04b5q , & rtB . bm2pphhktx , &
rtB . mew0r2rmut , & rtB . eynh445hv1 , & rtP . DCVoltageSource_Amplitude , &
rtP . PIDController_P , & rtP . PIDController_I , & rtP .
PIDController_InitialConditionForIntegrator , & rtP . PIDController3_P , &
rtP . PIDController3_I , & rtP . PIDController3_InitialConditionForIntegrator
, & rtP . PIDController4_P , & rtP . PIDController4_I , & rtP .
PIDController4_InitialConditionForIntegrator , & rtP . Constant_Value , & rtP
. Constant2_Value , & rtP . Constant3_Value , & rtP . Gain_Gain , & rtP .
Gain1_Gain , & rtP . Constant_Value_ahnta5b1bi , & rtP . Constant1_Value , &
rtP . CoulombViscousFriction_offset , & rtP . CoulombViscousFriction_gain , &
rtP . DiscreteTimeIntegrator_gainval_mjgsuxrz21 , & rtP .
DiscreteTimeIntegrator_IC_mz4wlcvrk2 , & rtP .
DiscreteTimeIntegrator1_gainval , & rtP . DiscreteTimeIntegrator1_IC , & rtP
. Gain_Gain_cnsevagfns , & rtP . Gain2_Gain_nink3v2kty , & rtP .
Constant3_Value_bejh11f5do , & rtP . Constant4_Value , & rtP .
Switch_Threshold , & rtP . Switch1_Threshold , & rtP . Switch2_Threshold , &
rtP . Gain_Gain_hehkc3jgen , & rtP . Gain1_Gain_n3fx5vigfy , & rtP .
Gain2_Gain , & rtP . Switch_Threshold_d3pcfftxzn , & rtP .
Switch1_Threshold_jsou4lt4xc , & rtP . RepeatingSequence_rep_seq_y [ 0 ] , &
rtP . CompareToConstant_const , & rtP . Saturation_UpperSat , & rtP .
Saturation_LowerSat , & rtP . StateSpace_DS_param [ 0 ] , & rtP .
Integrator_gainval , & rtP . Integrator_gainval_if4krzbtot , & rtP .
Integrator_gainval_ac2bwkmf4o , & rtP . Constant_Value_gnz10l4nxj , & rtP .
LookUpTable1_bp01Data [ 0 ] , & rtP . SwitchCurrents_Value [ 0 ] , & rtP .
DiscreteTimeIntegrator_gainval_ag5cij0zd5 , & rtP .
DiscreteTimeIntegrator_IC_gww3x4gjg5 , & rtP . uLd_Gain , & rtP . LqLd_Gain ,
& rtP . RLd_Gain , & rtP . DiscreteTimeIntegrator_gainval , & rtP .
DiscreteTimeIntegrator_IC , & rtP . uLq_Gain , & rtP . LdLq_Gain , & rtP .
RLq_Gain , & rtP . lamLq_Gain , } ; static int32_T * rtVarDimsAddrMap [ ] = {
( NULL ) } ;
#endif
static TARGET_CONST rtwCAPI_DataTypeMap rtDataTypeMap [ ] = { { "double" ,
"real_T" , 0 , 0 , sizeof ( real_T ) , ( uint8_T ) SS_DOUBLE , 0 , 0 , 0 } }
;
#ifdef HOST_CAPI_BUILD
#undef sizeof
#endif
static TARGET_CONST rtwCAPI_ElementMap rtElementMap [ ] = { { ( NULL ) , 0 ,
0 , 0 , 0 } , } ; static const rtwCAPI_DimensionMap rtDimensionMap [ ] = { {
rtwCAPI_SCALAR , 0 , 2 , 0 } , { rtwCAPI_VECTOR , 2 , 2 , 0 } , {
rtwCAPI_VECTOR , 4 , 2 , 0 } , { rtwCAPI_VECTOR , 6 , 2 , 0 } , {
rtwCAPI_MATRIX_COL_MAJOR , 8 , 2 , 0 } } ; static const uint_T
rtDimensionArray [ ] = { 1 , 1 , 6 , 1 , 8 , 1 , 1 , 3 , 8 , 9 } ; static
const real_T rtcapiStoredFloats [ ] = { 1.0E-6 , 0.0 , 1.0 } ; static const
rtwCAPI_FixPtMap rtFixPtMap [ ] = { { ( NULL ) , ( NULL ) ,
rtwCAPI_FIX_RESERVED , 0 , 0 , ( boolean_T ) 0 } , } ; static const
rtwCAPI_SampleTimeMap rtSampleTimeMap [ ] = { { ( const void * ) &
rtcapiStoredFloats [ 0 ] , ( const void * ) & rtcapiStoredFloats [ 1 ] , (
int8_T ) 2 , ( uint8_T ) 0 } , { ( const void * ) & rtcapiStoredFloats [ 1 ]
, ( const void * ) & rtcapiStoredFloats [ 2 ] , ( int8_T ) 1 , ( uint8_T ) 0
} , { ( NULL ) , ( NULL ) , 3 , 0 } , { ( const void * ) & rtcapiStoredFloats
[ 1 ] , ( const void * ) & rtcapiStoredFloats [ 1 ] , ( int8_T ) 0 , (
uint8_T ) 0 } } ; static rtwCAPI_ModelMappingStaticInfo mmiStatic = { {
rtBlockSignals , 31 , rtRootInputs , 0 , rtRootOutputs , 0 } , {
rtBlockParameters , 57 , rtModelParameters , 0 } , { ( NULL ) , 0 } , {
rtDataTypeMap , rtDimensionMap , rtFixPtMap , rtElementMap , rtSampleTimeMap
, rtDimensionArray } , "float" , { 4252159461U , 500321272U , 3214158740U ,
463824658U } , ( NULL ) , 0 , ( boolean_T ) 0 , rt_LoggedStateIdxList } ;
const rtwCAPI_ModelMappingStaticInfo * foc1_GetCAPIStaticMap ( void ) {
return & mmiStatic ; }
#ifndef HOST_CAPI_BUILD
void foc1_InitializeDataMapInfo ( void ) { rtwCAPI_SetVersion ( ( *
rt_dataMapInfoPtr ) . mmi , 1 ) ; rtwCAPI_SetStaticMap ( ( *
rt_dataMapInfoPtr ) . mmi , & mmiStatic ) ; rtwCAPI_SetLoggingStaticMap ( ( *
rt_dataMapInfoPtr ) . mmi , ( NULL ) ) ; rtwCAPI_SetDataAddressMap ( ( *
rt_dataMapInfoPtr ) . mmi , rtDataAddrMap ) ; rtwCAPI_SetVarDimsAddressMap (
( * rt_dataMapInfoPtr ) . mmi , rtVarDimsAddrMap ) ;
rtwCAPI_SetInstanceLoggingInfo ( ( * rt_dataMapInfoPtr ) . mmi , ( NULL ) ) ;
rtwCAPI_SetChildMMIArray ( ( * rt_dataMapInfoPtr ) . mmi , ( NULL ) ) ;
rtwCAPI_SetChildMMIArrayLen ( ( * rt_dataMapInfoPtr ) . mmi , 0 ) ; }
#else
#ifdef __cplusplus
extern "C" {
#endif
void foc1_host_InitializeDataMapInfo ( foc1_host_DataMapInfo_T * dataMap ,
const char * path ) { rtwCAPI_SetVersion ( dataMap -> mmi , 1 ) ;
rtwCAPI_SetStaticMap ( dataMap -> mmi , & mmiStatic ) ;
rtwCAPI_SetDataAddressMap ( dataMap -> mmi , ( NULL ) ) ;
rtwCAPI_SetVarDimsAddressMap ( dataMap -> mmi , ( NULL ) ) ; rtwCAPI_SetPath
( dataMap -> mmi , path ) ; rtwCAPI_SetFullPath ( dataMap -> mmi , ( NULL ) )
; rtwCAPI_SetChildMMIArray ( dataMap -> mmi , ( NULL ) ) ;
rtwCAPI_SetChildMMIArrayLen ( dataMap -> mmi , 0 ) ; }
#ifdef __cplusplus
}
#endif
#endif
